﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="VTV.TaskManagementSystem.WebApp.Admin.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:ResourceManager runat="server" Theme="Gray" />
        <span style="position: absolute; top: 55px; left: 80px; font-size: 38px !important; color: #333333;">
            hệ thống quản lý công việc
        </span>
        <ext:Window 
            runat="server"
            ID="windowLogin"
            Closable="False"
            Resizable="False"
            Height="150"
            Width="310"
            Icon="Lock"
            Title="Đăng nhập hệ thống"
            Draggable="True"
            Modal="True"
            BodyPadding="8"
            Layout="FormLayout">
            
            <Items>
                <ext:TextField 
                    runat="server"
                    ID="txtUsername"
                    FieldLabel="Username"
                    AllowBlank="False"
                    EmptyText="Username"
                    BlankText="Nhập tên đăng nhập!"/>
                <ext:TextField 
                    runat="server"
                    ID="txtPassword"
                    InputType="Password"
                    FieldLabel="Password"
                    AllowBlank="False"
                    EmptyText="Password"
                    BlankText="Nhập mật khẩu!"/>
            </Items>
            <Buttons>
                <%--<ext:LinkButton ID="LinkButton1" runat="server" Text="Quên mật khẩu" Margin="0"/>--%>
                <ext:Button ID="btnLogin" runat="server" Text="Đăng nhập" Icon="Accept">
                    <Listeners>
                        <Click Handler="
                            if (!#{txtUsername}.validate() || !#{txtPassword}.validate()) {
                                Ext.Msg.alert('Lỗi','Nhập Username và Password');
                                
                                return false; 
                            }" />
                    </Listeners>
                    <DirectEvents>
                        <Click OnEvent="btnLogin_Click">
                            <EventMask ShowMask="true" Msg="Verifying..." MinDelay="500" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
                <ext:Button ID="btnCancel" runat="server" Text="Hủy" Icon="Decline">
                    <DirectEvents>
                        <Click OnEvent="btnCancel_Click">
                            <EventMask ShowMask="true" Msg="Verifying..." MinDelay="500" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </form>
</body>
</html>
